package com.reform.controller.common;


import com.reform.res.Result;
import com.reform.res.ResultCode;
import com.reform.service.IDictLevelService;
import com.reform.service.impl.DictLevelServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLException;

/**
 * <p>
 * 批次级别表 前端控制器
 * </p>
 *
 * @author mortale
 * @since 2021-07-14
 */
@Api(tags = "DictLevelController")
@RestController
@RequestMapping("/dict-level")
public class DictLevelController {

    @Autowired
    IDictLevelService dictLevelService;

    @ApiOperation(value = "获取全部项目级别", notes = "获取全部项目级别")
    @GetMapping("/getDictLevels")
    public Result getDictLevels() {
        return Result.success(ResultCode.SUCCESS, dictLevelService.getDictLevels());
    }
}
